package com.gwtapps.multisearch.client;

import com.gwtapps.multisearch.client.model.SearchEngine;
import com.gwtapps.multisearch.client.view.MultiSearchView;
import com.gwtapps.multisearch.client.view.SearchResultsView;

abstract public class Searcher {
	private SearchResultsView view;
	
	public Searcher( MultiSearchView view, SearchEngine engine ){
		this.view = new SearchResultsView( engine );
		view.addSearchResultsView( this.view  );
	}	
	
	public SearchResultsView getView(){
		return view; 
	}	
	
	public void setView( SearchResultsView view ){
		this.view = view; 
	}
	
	abstract public void query( String q );	
}
